//
//  SQAccidentTypesTableViewCell.m
//  steel
//
//  Created by 苏青 on 2021/8/5.
//

#import "SQAccidentTypesTableViewCell.h"
#import "SQAccidentTypesModel.h"

@implementation SQAccidentTypesTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
+(CGFloat)cellHeight:(BaseModel *)model{
    return W(50);
    
}

-(void)setModel:(BaseModel<BaseCellModelProtocol> *)model{
    SQAccidentTypesModelData * dataModle = model;
    if ([dataModle.picStr isEqualToString:@"0"]) {
        self.img_pic.image = [UIImage imageNamed:@"notSele"];
    }else if ([dataModle.picStr isEqualToString:@"1"]){
        self.img_pic.image = [UIImage imageNamed:@"selected"];
    }
    self.lab_title.text = dataModle.ep_name;
}

- (IBAction)clickSel:(UIButton *)sender {
        
    self.cellEvent((int)self.indexPath.row);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
